<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
	request.setAttribute("basePath", basePath);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>后台工作页面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<!-- Bootstrap -->
<link
	href="${basePath}/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="${basePath}/jquery/jquery-3.3.1.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script
	src="${basePath}/static/bootstrap-3.3.7-dist/js/bootstrap.min.js" charset="utf-8"></script>



</head>

<body>


	<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
	<button type="button" class="btn btn-primary" id="viptoservice">VIP
		Service</button>

	<br />
	<br />
	<br />

	<!-- Indicates a successful or positive action -->
	<button type="button" class="btn btn-success" id="priortoservice">PRIOR
		Service</button>

	<br />
	<br />
	<br />

	<!-- Contextual button for informational alert messages -->
	<button type="button" class="btn btn-info" id="generaltoservice">GENERAL
		Service</button>

	<br />
	<br />
	<br />


</body>


<script type="text/javascript">
	//服务VIP
	$("#viptoservice").click(function() {

		$.ajax({
			type : "GET",
			url : "${basePath}/viptoservice",
			dataType : 'JSON',
			success : function(data) {
				if (data.statu == "1") {
					alert(data.result);
				}
			}
		});
	});

	//服务prior
	$("#priortoservice").click(function() {

		$.ajax({
			type : "GET",
			url : "${basePath}/priortoservice",
			dataType : 'JSON',
			success : function(data) {
				if (data.statu == "1") {
					alert(data.result);
				}
			}
		});
	});

	//服务general
	$("#generaltoservice").click(function() {

		$.ajax({
			type : "GET",
			url : "${basePath}/generaltoservice",
			dataType : 'JSON',
			success : function(data) {
				if (data.statu == "1") {
					alert(data.result);
				}
			}
		});
	});
</script>


</html>
